@using OurWedding1
@model OurWedding1.Models.Task

@{
    ViewBag.Title = Resources.Create_New;
}

@Html.Partial("TasksHeading")
<h2>@ViewBag.Title</h2>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Task</legend>

        @Html.Partial("_CreateOrEdit", Model)


    </fieldset>
    <div id="toolbar" class="ui-widget-header ui-corner-all">
        @Html.ActionLink(Resources.Back_To_List, "Index", null, new { @class = "backButtonLink" })
        <input type="submit" class="submitItem" value="@Resources.Save" />
    </div>
}

<div>
    @Html.ActionLink(Resources.Back_To_List, "Index")
</div>

@section Scripts{
    @Scripts.Render("~/bundles/jqueryval")
    @Scripts.Render("~/bundles/jqueryglob")
    @Scripts.Render("~/bundles/functions")
    @Scripts.Render("~/bundles/chosen")

    <script type="text/javascript">
        $(function () {
            globalizationInit();
            $("#ExpenseId").chosen();
            $(".backButtonLink").button({
                icons: {
                    primary: "ui-icon-triangle-1-w"
                }
            });
            $(".submitItem").button({
                icons: {
                    primary: "ui-icon-disk"
                }
            });
        });
    </script>

}

